package org.mbds.sensorsdatacollector.android.tools;

import org.mbds.sensorsdatacollector.android.db.SensorsDataSQLiteDatabase;

import android.os.Build;

public class StaticCommons {
	private static SensorsDataSQLiteDatabase dbManager = null;
	
	public static String getDeviceName() {
		  String manufacturer = Build.MANUFACTURER.toUpperCase();
		  String model = Build.MODEL.toUpperCase();
		  if (model.startsWith(manufacturer)) {
		    return model;
		  } else {
		    return manufacturer + " " + model;
		  }
		}
	public static void setDatabaseManager(SensorsDataSQLiteDatabase db) {
		dbManager=db;
	}
	public static SensorsDataSQLiteDatabase getDatabaseManager() {
		return dbManager;
	}
}
